<template>
	<a @click="toTop" href="javascript:;" class="back"></a>
</template>

<script>
export default {
	name: "TOTOP",
};
</script>

<script setup>
const toTop = () => {
	document.documentElement.scrollTop = 0;
};
</script>

<style lang="less" scoped>
.back {
	display: block;
	position: fixed;
	text-indent: -9999px;
	left: 50%;
	margin-left: 500px;
	bottom: 160px;
	width: 49px;
	height: 44px;
	background: url(../../image/download1.png) no-repeat 0 9999px;
	background-position: -265px -47px;
	z-index: 999;
}
</style>
